<?php

require_once("editEmployeeController.php");

$edit = new editEmployeeController;

?>

<html>
	<head>
	<title>Edit Employee</title>
	</head>
	
	<body>
	<table>
	
	
	<?php
	
	//error_reporting(E_ALL ^ E_NOTICE);
	$result = $edit -> sendEditEmployeeRequest($_REQUEST['Emp_no']);
	
	$row = mysql_fetch_array($result);
	
	echo '<form action=\"editPlanholderController.php\" method=\"post\" >

			Employee Number<input type=\"text\" name=\"empNumber\" disabled=\"disabled\" value='.$row["Emp_no"].' />
			<br/>
			TIN:<input type=\"text\" name=\"tin\" value='.$row["TIN"].' />
			First Name<input type=\"text\" name=\"firstName\" value='.$row["First_name"].' />			
			Middle Name<input type=\"text\" name=\"middleName\" value='.$row["Middle_name"].' />
			Last Name<input type=\"text\" name=\"middleName\" value='.$row["Last_name"].' />
			<br/>
			Contact Number<input type=\"text\" name=\"contactNo\" value='.$row["Contact_no"].' />
			</br>
			Birthday<input type=\"text\" name=\"birthday\" value='.$row["Bday"].' />
			Age<input type=\"text\" name=\"age\" maxlength=\"2\" size=\"2\" value='.$row["Age"].' />
			<br/>
			Position<input type=\"text\" name=\"position\" value='.$row["Pos"].' />
			</br>
			Branch<input type=\"text\" name=\"branch\" value='.$row["Branch"].' />
			</br>
			Branch Address<input type=\"text\" name=\"branchAdd\" value='.$row["Branch_add"].' />
			</br>
			
			<input type="submit" value="Save Changes" />
			
		</form>';
	?>
		</table>
		
	</body>
</html>
			